<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery-3.6.1.js"></script>
		<style type="text/css">
			div {
				width: 200px;
				height: 200px;
				background-color: orange;
			}
		</style>
	</head>
	<body>
		<div></div>
		<button id="show">显示</button>
		<button id="hide">隐藏</button>
		<button id="toggle">切换</button>
		<script type="text/javascript">
			$('#show').click(function() {
				$('div').show(1000, 'linear', function() {
					console.log("show");
				});
			});
			$('#hide').click(function() {
				$('div').hide(1000, 'linear', function() {
					console.log("hide");
				});
			})
			$('#toggle').click(function() {
				$('div').toggle(1000, 'linear', function() {
					console.log("toggle");
				});
			})
		</script>
	</body>
</html>
